package com.liqi.monitor.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @Author: lgh
 * @Date: 2022-10-27
 * @Description:
 */
@Data
@ApiModel(value = "终止计划dto")
public class DeviceInfoDto {
    /**
     * 设备唯一id
     */
    @ApiModelProperty(value = "设备唯一id",required = true)
    @NotBlank(message = "设备id 不能为空")
    private String deviceId;

    /**
     * 计划id
     */
    @ApiModelProperty(value = "计划id",required = true)
    @NotBlank(message = "计划id 不能为空")
    private String planId;

    @ApiModelProperty(value = "计划执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date executionTime;

    @ApiModelProperty(value = "计划状态1=表示执行成功，-1表示执行失败，2表示人为终止成功，-2表示人工终止失败，3部分成功",hidden = true)
    private Integer planStatus;

    @ApiModelProperty(value = "更新消息",hidden = true)
    private String errorMessage;

    @ApiModelProperty(value = "1开机、2关机、3重启、4截图、5远程拉取日志、6远程自检、7下发更新计划、8终止更新计划",hidden = true)
    private Integer commandType;

    @ApiModelProperty(value = "消息编码，后台生成的一个流水号",hidden = true)
    private String messageCode;

}
